﻿function centerMarker() {
    this.ui = $("<div></div>");
    this.ui.addClass("column");
    this.ui.css("z-index", 1000);
    this.render = function () {
        this.ui.css("left", centerPixelX - cellSize * zoom / 2);
        this.ui.css("top", centerPixelY - cellSize * zoom / 2);
        this.ui.css("width", cellSize * zoom);
        this.ui.css("height", cellSize * zoom);
        //this.ui.css("border", "2px solid #ffffff");
        $("#mapArea").append(this.ui);
    }
    this._x = 0;
    this.x = function (p) {
        if (p == undefined) {
            return this._x;
        } else {
            this._x = p;
        }
    }
    this._y = 0;
    this.y = function (p) {
        if (p == undefined) {
            return this._y;
        } else {
            this._y = p;
        }
    }
    this.render();
}